import { createApp } from "vue";


import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import "../assets/Common.less";
import "../assets/iconfont.js";

import directive from "../directive";
import util from "../util";
import components from "../compontent/install";
import { router } from './Router.js'
// 这是一个 伪造的客户端方法, 用来忽略在浏览器中调试的BUG
if (!window.electronAPI) {
    window.electronAPI = {
        closeApp: (isMainWindow) => { },
        maxApp: () => { },
        unmaxApp: () => { },
        minApp: () => { },
        onChangeMaxState: () => { },
        offChangeMaxState: () => { },
    };
}

import App from "./App.vue";

var app = createApp(App);
app.use(router);
app.use(ElementPlus);
app.use(util);
app.use(directive);
app.use(components);
app.mount("#app");
